package com.devunion.salon.core.security;

import org.springframework.security.userdetails.UserDetailsService;
import org.springframework.security.userdetails.UserDetails;
import org.springframework.security.userdetails.UsernameNotFoundException;
import org.springframework.dao.DataAccessException;

/**
 * @author spetrakovsky
 */
public class SecurityUserDetailsSecvice implements UserDetailsService {
    public UserDetails loadUserByUsername(String s) throws UsernameNotFoundException, DataAccessException {
        return new SalonUserDetails(s);
    }
}
